package com.woniuxy.microcontentserver;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.transaction.annotation.EnableTransactionManagement;


@EnableTransactionManagement
@MapperScan(basePackages = {"com.woniuxy.microcontentserver.*msg.mapper"}) //扫描mapper里的注解
@EnableEurekaClient
@SpringBootApplication(exclude= DataSourceAutoConfiguration.class)
public class MicroContentServerApplication {

    public static void main(String[] args) {

        SpringApplication.run(MicroContentServerApplication.class, args);
    }

}
